package com.android.baseconfig.common.subject;


import com.android.baseconfig.common.observer.NetConnectionObserver;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2020, by het, Shenzhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述: NetConnectionSubject <br>
 * 作者: lei <br>
 * 日期: 2017/7/25 <br>
 */
public interface NetConnectionSubject {

    void addNetObserver(NetConnectionObserver observer);

    void removeNetObserver(NetConnectionObserver observer);

    /**
     * WiFi状态改变监听
     *
     * @param type {@link com.android.baseconfig.common.utils.NetWorkUtil}
     */
    void notifyNetObserver(int type);

    /**
     * NFC状态监听
     *
     * @param state 0-open|2-close
     */
    void notifyNFCObserver(int state);

    /**
     * WiFi状态监听
     *
     * @param state {@link android.net.wifi.WifiManager#WIFI_STATE_ENABLED}
     *              {@link android.net.wifi.WifiManager#WIFI_STATE_DISABLED}
     */
    void notifyWifiStatusObserver(int state);
}
